package com.runtime.hongyunmanage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.runtime.hongyunmanage.domain.Manager;
import com.runtime.hongyunmanage.domain.vo.ManagerVo;
import com.runtime.hongyunmanage.mapper.ManagerMapper;
import com.runtime.hongyunmanage.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class ManagerServiceimpl extends ServiceImpl<ManagerMapper, Manager> implements ManagerService {
    @Autowired
    private ManagerMapper managerMapper;

    @Override
    public boolean insertManager(Manager manager) {
        return managerMapper.insertManager(manager);
    }


//    @Override
//    public ManagerVo selectuserpower(String managerAcc, String managerPwd) {
//        return managerMapper.selectuserpower(managerAcc,managerPwd);
//    }

    @Override
    public List<Manager> selectManagerAcc(String managerAcc) {
        return managerMapper.selectManagerAcc(managerAcc);
    }
    @Override
    public List<Manager> selectManagerPwd(String managerAcc,String managerPwd) {
        return managerMapper.selectManagerPwd(managerAcc,managerPwd);
    }

    @Override
    public Integer selectmanager(String managerAcc) {
        return managerMapper.selectmanager(managerAcc);
    }
}
